1.2.3.2. alpha.cplusplus.EnumCastOutOfRange (C++)
Check for integer to enumeration casts that could result in undefined values.
Examples:
enum TestEnum { A = 0 }; void foo() { TestEnum t = static_cast(-1); // warn: the value provided to the cast expression is not in the valid range of values for the enum